STEP 8: Let's calculate the y-coordinate for our first square in the top lefthand corner.

  • In , drag Subtraction indented inside create_maze().
  • Change the variable to the left of the = sign from my_var to y.
  • Change number 5 to 250 and the number 1 to square_length/2.
  • We place squares using their center coordinates, so we're subtracting half the square's length from 250.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)